<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="mysql,">










<meta name="description" content="创建mysql函数">
<meta name="keywords" content="mysql">
<meta property="og:type" content="article">
<meta property="og:title" content="汉字转拼音（mysql）">
<meta property="og:url" content="http://changyuan.github.io/2014/08/29/zh-cn-to-pinyin/index.html">
<meta property="og:site_name" content="Chang Crazy&#39;s Blog">
<meta property="og:description" content="创建mysql函数">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2016-08-29T02:52:19.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="汉字转拼音（mysql）">
<meta name="twitter:description" content="创建mysql函数">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://changyuan.github.io/2014/08/29/zh-cn-to-pinyin/">





  <title>汉字转拼音（mysql） | Chang Crazy's Blog</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Chang Crazy's Blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">升级自己的操作系统</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-schedule">
          <a href="/schedule/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-calendar"></i> <br>
            
            日程表
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br>
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocomplete="off" placeholder="搜索..." spellcheck="false" type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://changyuan.github.io/2014/08/29/zh-cn-to-pinyin/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="changyuan">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chang Crazy's Blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">汉字转拼音（mysql）</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2014-08-29T10:52:19+08:00">
                2014-08-29
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="page-pv"><i class="fa fa-file-o"></i>
            <span class="busuanzi-value" id="busuanzi_value_page_pv"></span>
            </span>
          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="创建mysql函数"><a href="#创建mysql函数" class="headerlink" title="创建mysql函数"></a>创建mysql函数</h3><a id="more"></a>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">CREATE FUNCTION `f_to_pinyin`(NAME VARCHAR(255) CHARSET gbk) RETURNS varchar(255) CHARSET gbk</span><br><span class="line">BEGIN</span><br><span class="line">    DECLARE mycode INT;</span><br><span class="line">    DECLARE tmp_lcode VARCHAR(2) CHARSET gbk;</span><br><span class="line">    DECLARE lcode INT;</span><br><span class="line">    DECLARE tmp_rcode VARCHAR(2) CHARSET gbk;</span><br><span class="line">    DECLARE rcode INT;</span><br><span class="line">    DECLARE mypy VARCHAR(255) CHARSET gbk DEFAULT &apos;&apos;;</span><br><span class="line">    DECLARE lp INT;</span><br><span class="line">    SET mycode = 0;</span><br><span class="line">    SET lp = 1;</span><br><span class="line">    SET NAME = HEX(NAME);</span><br><span class="line">    WHILE lp &lt; LENGTH(NAME) DO</span><br><span class="line">        SET tmp_lcode = SUBSTRING(NAME, lp, 2);</span><br><span class="line">        SET lcode = CAST(ASCII(UNHEX(tmp_lcode)) AS UNSIGNED); </span><br><span class="line">        SET tmp_rcode = SUBSTRING(NAME, lp + 2, 2);</span><br><span class="line">        SET rcode = CAST(ASCII(UNHEX(tmp_rcode)) AS UNSIGNED); </span><br><span class="line">        IF lcode &gt; 128 THEN</span><br><span class="line">            SET mycode =65536 - lcode * 256 - rcode ;</span><br><span class="line">            SELECT CONCAT(mypy,py) INTO mypy FROM pinyin WHERE `code` &gt;= ABS(mycode) ORDER BY `code` ASC LIMIT 1;</span><br><span class="line">            SET lp = lp + 4;</span><br><span class="line">        ELSE</span><br><span class="line">            SET mypy = CONCAT(mypy,CHAR(CAST(ASCII(UNHEX(SUBSTRING(NAME, lp, 2))) AS UNSIGNED)));</span><br><span class="line">            SET lp = lp + 2;</span><br><span class="line">        END IF;</span><br><span class="line">    END WHILE;</span><br><span class="line">    RETURN LOWER(mypy);</span><br><span class="line">END</span><br></pre></td></tr></table></figure>
<h3 id="创建拼音ascii码"><a href="#创建拼音ascii码" class="headerlink" title="创建拼音ascii码"></a>创建拼音ascii码</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br><span class="line">306</span><br><span class="line">307</span><br><span class="line">308</span><br><span class="line">309</span><br><span class="line">310</span><br><span class="line">311</span><br><span class="line">312</span><br><span class="line">313</span><br><span class="line">314</span><br><span class="line">315</span><br><span class="line">316</span><br><span class="line">317</span><br><span class="line">318</span><br><span class="line">319</span><br><span class="line">320</span><br><span class="line">321</span><br><span class="line">322</span><br><span class="line">323</span><br><span class="line">324</span><br><span class="line">325</span><br><span class="line">326</span><br><span class="line">327</span><br><span class="line">328</span><br><span class="line">329</span><br><span class="line">330</span><br><span class="line">331</span><br><span class="line">332</span><br><span class="line">333</span><br><span class="line">334</span><br><span class="line">335</span><br><span class="line">336</span><br><span class="line">337</span><br><span class="line">338</span><br><span class="line">339</span><br><span class="line">340</span><br><span class="line">341</span><br><span class="line">342</span><br><span class="line">343</span><br><span class="line">344</span><br><span class="line">345</span><br><span class="line">346</span><br><span class="line">347</span><br><span class="line">348</span><br><span class="line">349</span><br><span class="line">350</span><br><span class="line">351</span><br><span class="line">352</span><br><span class="line">353</span><br><span class="line">354</span><br><span class="line">355</span><br><span class="line">356</span><br><span class="line">357</span><br><span class="line">358</span><br><span class="line">359</span><br><span class="line">360</span><br><span class="line">361</span><br><span class="line">362</span><br><span class="line">363</span><br><span class="line">364</span><br><span class="line">365</span><br><span class="line">366</span><br><span class="line">367</span><br><span class="line">368</span><br><span class="line">369</span><br><span class="line">370</span><br><span class="line">371</span><br><span class="line">372</span><br><span class="line">373</span><br><span class="line">374</span><br><span class="line">375</span><br><span class="line">376</span><br><span class="line">377</span><br><span class="line">378</span><br><span class="line">379</span><br><span class="line">380</span><br><span class="line">381</span><br><span class="line">382</span><br><span class="line">383</span><br><span class="line">384</span><br><span class="line">385</span><br><span class="line">386</span><br><span class="line">387</span><br><span class="line">388</span><br><span class="line">389</span><br><span class="line">390</span><br><span class="line">391</span><br><span class="line">392</span><br><span class="line">393</span><br><span class="line">394</span><br><span class="line">395</span><br><span class="line">396</span><br><span class="line">397</span><br><span class="line">398</span><br><span class="line">399</span><br><span class="line">400</span><br><span class="line">401</span><br><span class="line">402</span><br><span class="line">403</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">CREATE TABLE `pinyin` (</span><br><span class="line">  `code` int(11) NOT NULL,</span><br><span class="line">  `py` varchar(10) CHARACTER SET gbk NOT NULL,</span><br><span class="line">  PRIMARY KEY (`code`)</span><br><span class="line">) ENGINE=InnoDB DEFAULT CHARSET=utf8;</span><br><span class="line"></span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10254&apos;, &apos;zuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10256&apos;, &apos;zun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10260&apos;, &apos;zui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10262&apos;, &apos;zuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10270&apos;, &apos;zu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10274&apos;, &apos;zou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10281&apos;, &apos;zong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10296&apos;, &apos;zi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10307&apos;, &apos;zhuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10309&apos;, &apos;zhun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10315&apos;, &apos;zhui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10322&apos;, &apos;zhuang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10328&apos;, &apos;zhuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10329&apos;, &apos;zhuai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10331&apos;, &apos;zhua&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10519&apos;, &apos;zhu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10533&apos;, &apos;zhou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10544&apos;, &apos;zhong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10587&apos;, &apos;zhi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10764&apos;, &apos;zheng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10780&apos;, &apos;zhen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10790&apos;, &apos;zhe&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10800&apos;, &apos;zhao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10815&apos;, &apos;zhang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10832&apos;, &apos;zhan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;10838&apos;, &apos;zhai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11014&apos;, &apos;zha&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11018&apos;, &apos;zeng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11019&apos;, &apos;zen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11020&apos;, &apos;zei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11024&apos;, &apos;ze&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11038&apos;, &apos;zao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11041&apos;, &apos;zang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11045&apos;, &apos;zan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11052&apos;, &apos;zai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11055&apos;, &apos;za&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11067&apos;, &apos;yun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11077&apos;, &apos;yue&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11097&apos;, &apos;yuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11303&apos;, &apos;yu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11324&apos;, &apos;you&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11339&apos;, &apos;yong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11340&apos;, &apos;yo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11358&apos;, &apos;ying&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11536&apos;, &apos;yin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11589&apos;, &apos;yi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11604&apos;, &apos;ye&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11781&apos;, &apos;yao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11798&apos;, &apos;yang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11831&apos;, &apos;yan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11847&apos;, &apos;ya&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11861&apos;, &apos;xun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;11867&apos;, &apos;xue&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12039&apos;, &apos;xuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12058&apos;, &apos;xu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12067&apos;, &apos;xiu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12074&apos;, &apos;xiong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12089&apos;, &apos;xing&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12099&apos;, &apos;xin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12120&apos;, &apos;xie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12300&apos;, &apos;xiao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12320&apos;, &apos;xiang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12346&apos;, &apos;xian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12359&apos;, &apos;xia&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12556&apos;, &apos;xi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12585&apos;, &apos;wu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12594&apos;, &apos;wo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12597&apos;, &apos;weng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12607&apos;, &apos;wen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12802&apos;, &apos;wei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12812&apos;, &apos;wang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12829&apos;, &apos;wan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12831&apos;, &apos;wai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12838&apos;, &apos;wa&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12849&apos;, &apos;tuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12852&apos;, &apos;tun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12858&apos;, &apos;tui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12860&apos;, &apos;tuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12871&apos;, &apos;tu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12875&apos;, &apos;tou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;12888&apos;, &apos;tong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13060&apos;, &apos;ting&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13063&apos;, &apos;tie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13068&apos;, &apos;tiao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13076&apos;, &apos;tian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13091&apos;, &apos;ti&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13095&apos;, &apos;teng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13096&apos;, &apos;te&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13107&apos;, &apos;tao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13120&apos;, &apos;tang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13138&apos;, &apos;tan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13147&apos;, &apos;tai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13318&apos;, &apos;ta&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13326&apos;, &apos;suo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13329&apos;, &apos;sun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13340&apos;, &apos;sui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13343&apos;, &apos;suan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13356&apos;, &apos;su&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13359&apos;, &apos;sou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13367&apos;, &apos;song&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13383&apos;, &apos;si&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13387&apos;, &apos;shuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13391&apos;, &apos;shun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13395&apos;, &apos;shui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13398&apos;, &apos;shuang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13400&apos;, &apos;shuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13404&apos;, &apos;shuai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13406&apos;, &apos;shua&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13601&apos;, &apos;shu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13611&apos;, &apos;shou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13658&apos;, &apos;shi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13831&apos;, &apos;sheng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13847&apos;, &apos;shen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13859&apos;, &apos;she&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13870&apos;, &apos;shao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13878&apos;, &apos;shang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13894&apos;, &apos;shan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13896&apos;, &apos;shai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13905&apos;, &apos;sha&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13906&apos;, &apos;seng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13907&apos;, &apos;sen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13910&apos;, &apos;se&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13914&apos;, &apos;sao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;13917&apos;, &apos;sang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14083&apos;, &apos;san&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14087&apos;, &apos;sai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14090&apos;, &apos;sa&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14092&apos;, &apos;ruo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14094&apos;, &apos;run&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14097&apos;, &apos;rui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14099&apos;, &apos;ruan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14109&apos;, &apos;ru&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14112&apos;, &apos;rou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14122&apos;, &apos;rong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14123&apos;, &apos;ri&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14125&apos;, &apos;reng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14135&apos;, &apos;ren&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14137&apos;, &apos;re&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14140&apos;, &apos;rao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14145&apos;, &apos;rang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14149&apos;, &apos;ran&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14151&apos;, &apos;qun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14159&apos;, &apos;que&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14170&apos;, &apos;quan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14345&apos;, &apos;qu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14353&apos;, &apos;qiu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14355&apos;, &apos;qiong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14368&apos;, &apos;qing&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14379&apos;, &apos;qin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14384&apos;, &apos;qie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14399&apos;, &apos;qiao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14407&apos;, &apos;qiang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14429&apos;, &apos;qian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14594&apos;, &apos;qia&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14630&apos;, &apos;qi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14645&apos;, &apos;pu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14654&apos;, &apos;po&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14663&apos;, &apos;ping&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14668&apos;, &apos;pin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14670&apos;, &apos;pie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14674&apos;, &apos;piao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14678&apos;, &apos;pian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14857&apos;, &apos;pi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14871&apos;, &apos;peng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14873&apos;, &apos;pen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14882&apos;, &apos;pei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14889&apos;, &apos;pao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14894&apos;, &apos;pang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14902&apos;, &apos;pan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14908&apos;, &apos;pai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14914&apos;, &apos;pa&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14921&apos;, &apos;ou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14922&apos;, &apos;o&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14926&apos;, &apos;nuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14928&apos;, &apos;nue&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14929&apos;, &apos;nuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14930&apos;, &apos;nv&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14933&apos;, &apos;nu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14937&apos;, &apos;nong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;14941&apos;, &apos;niu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15109&apos;, &apos;ning&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15110&apos;, &apos;nin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15117&apos;, &apos;nie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15119&apos;, &apos;niao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15121&apos;, &apos;niang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15128&apos;, &apos;nian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15139&apos;, &apos;ni&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15140&apos;, &apos;neng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15141&apos;, &apos;nen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15143&apos;, &apos;nei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15144&apos;, &apos;ne&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15149&apos;, &apos;nao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15150&apos;, &apos;nang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15153&apos;, &apos;nan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15158&apos;, &apos;nai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15165&apos;, &apos;na&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15180&apos;, &apos;mu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15183&apos;, &apos;mou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15362&apos;, &apos;mo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15363&apos;, &apos;miu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15369&apos;, &apos;ming&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15375&apos;, &apos;min&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15377&apos;, &apos;mie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15385&apos;, &apos;miao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15394&apos;, &apos;mian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15408&apos;, &apos;mi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15416&apos;, &apos;meng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15419&apos;, &apos;men&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15435&apos;, &apos;mei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15436&apos;, &apos;me&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15448&apos;, &apos;mao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15454&apos;, &apos;mang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15625&apos;, &apos;man&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15631&apos;, &apos;mai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15640&apos;, &apos;ma&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15652&apos;, &apos;luo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15659&apos;, &apos;lun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15661&apos;, &apos;lue&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15667&apos;, &apos;luan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15681&apos;, &apos;lv&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15701&apos;, &apos;lu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15707&apos;, &apos;lou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15878&apos;, &apos;long&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15889&apos;, &apos;liu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15903&apos;, &apos;ling&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15915&apos;, &apos;lin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15920&apos;, &apos;lie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15933&apos;, &apos;liao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15944&apos;, &apos;liang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15958&apos;, &apos;lian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;15959&apos;, &apos;lia&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16155&apos;, &apos;li&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16158&apos;, &apos;leng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16169&apos;, &apos;lei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16171&apos;, &apos;le&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16180&apos;, &apos;lao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16187&apos;, &apos;lang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16202&apos;, &apos;lan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16205&apos;, &apos;lai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16212&apos;, &apos;la&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16216&apos;, &apos;kuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16220&apos;, &apos;kun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16393&apos;, &apos;kui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16401&apos;, &apos;kuang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16403&apos;, &apos;kuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16407&apos;, &apos;kuai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16412&apos;, &apos;kua&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16419&apos;, &apos;ku&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16423&apos;, &apos;kou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16427&apos;, &apos;kong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16429&apos;, &apos;keng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16433&apos;, &apos;ken&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16448&apos;, &apos;ke&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16452&apos;, &apos;kao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16459&apos;, &apos;kang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16465&apos;, &apos;kan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16470&apos;, &apos;kai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16474&apos;, &apos;ka&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16647&apos;, &apos;jun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16657&apos;, &apos;jue&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16664&apos;, &apos;juan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16689&apos;, &apos;ju&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16706&apos;, &apos;jiu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16708&apos;, &apos;jiong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16733&apos;, &apos;jing&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16915&apos;, &apos;jin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16942&apos;, &apos;jie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16970&apos;, &apos;jiao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;16983&apos;, &apos;jiang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17185&apos;, &apos;jian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17202&apos;, &apos;jia&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17417&apos;, &apos;ji&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17427&apos;, &apos;huo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17433&apos;, &apos;hun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17454&apos;, &apos;hui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17468&apos;, &apos;huang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17482&apos;, &apos;huan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17487&apos;, &apos;huai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17496&apos;, &apos;hua&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17676&apos;, &apos;hu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17683&apos;, &apos;hou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17692&apos;, &apos;hong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17697&apos;, &apos;heng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17701&apos;, &apos;hen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17703&apos;, &apos;hei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17721&apos;, &apos;he&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17730&apos;, &apos;hao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17733&apos;, &apos;hang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17752&apos;, &apos;han&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17759&apos;, &apos;hai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17922&apos;, &apos;ha&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17928&apos;, &apos;guo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17931&apos;, &apos;gun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17947&apos;, &apos;gui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17950&apos;, &apos;guang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17961&apos;, &apos;guan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17964&apos;, &apos;guai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17970&apos;, &apos;gua&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17988&apos;, &apos;gu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;17997&apos;, &apos;gou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18012&apos;, &apos;gong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18181&apos;, &apos;geng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18183&apos;, &apos;gen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18184&apos;, &apos;gei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18201&apos;, &apos;ge&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18211&apos;, &apos;gao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18220&apos;, &apos;gang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18231&apos;, &apos;gan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18237&apos;, &apos;gai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18239&apos;, &apos;ga&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18446&apos;, &apos;fu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18447&apos;, &apos;fou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18448&apos;, &apos;fo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18463&apos;, &apos;feng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18478&apos;, &apos;fen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18490&apos;, &apos;fei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18501&apos;, &apos;fang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18518&apos;, &apos;fan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18526&apos;, &apos;fa&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18696&apos;, &apos;er&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18697&apos;, &apos;en&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18710&apos;, &apos;e&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18722&apos;, &apos;duo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18731&apos;, &apos;dun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18735&apos;, &apos;dui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18741&apos;, &apos;duan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18756&apos;, &apos;du&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18763&apos;, &apos;dou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18773&apos;, &apos;dong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18774&apos;, &apos;diu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18783&apos;, &apos;ding&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18952&apos;, &apos;die&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18961&apos;, &apos;diao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18977&apos;, &apos;dian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;18996&apos;, &apos;di&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19003&apos;, &apos;deng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19006&apos;, &apos;de&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19018&apos;, &apos;dao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19023&apos;, &apos;dang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19038&apos;, &apos;dan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19212&apos;, &apos;dai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19218&apos;, &apos;da&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19224&apos;, &apos;cuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19227&apos;, &apos;cun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19235&apos;, &apos;cui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19238&apos;, &apos;cuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19242&apos;, &apos;cu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19243&apos;, &apos;cou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19249&apos;, &apos;cong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19261&apos;, &apos;ci&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19263&apos;, &apos;chuo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19270&apos;, &apos;chun&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19275&apos;, &apos;chui&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19281&apos;, &apos;chuang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19288&apos;, &apos;chuan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19289&apos;, &apos;chuai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19467&apos;, &apos;chu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19479&apos;, &apos;chou&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19484&apos;, &apos;chong&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19500&apos;, &apos;chi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19515&apos;, &apos;cheng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19525&apos;, &apos;chen&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19531&apos;, &apos;che&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19540&apos;, &apos;chao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19715&apos;, &apos;chang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19725&apos;, &apos;chan&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19728&apos;, &apos;chai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19739&apos;, &apos;cha&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19741&apos;, &apos;ceng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19746&apos;, &apos;ce&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19751&apos;, &apos;cao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19756&apos;, &apos;cang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19763&apos;, &apos;can&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19774&apos;, &apos;cai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19775&apos;, &apos;ca&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19784&apos;, &apos;bu&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19805&apos;, &apos;bo&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19976&apos;, &apos;bing&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19982&apos;, &apos;bin&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19986&apos;, &apos;bie&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;19990&apos;, &apos;biao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20002&apos;, &apos;bian&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20026&apos;, &apos;bi&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20032&apos;, &apos;beng&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20036&apos;, &apos;ben&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20051&apos;, &apos;bei&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20230&apos;, &apos;bao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20242&apos;, &apos;bang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20257&apos;, &apos;ban&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20265&apos;, &apos;bai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20283&apos;, &apos;ba&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20292&apos;, &apos;ao&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20295&apos;, &apos;ang&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20304&apos;, &apos;an&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20317&apos;, &apos;ai&apos;);</span><br><span class="line">INSERT INTO `pinyin` VALUES (&apos;20319&apos;, &apos;a&apos;);</span><br></pre></td></tr></table></figure>
<h3 id="调用"><a href="#调用" class="headerlink" title="调用"></a>调用</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">select f_to_pinyin(&quot;测试&quot;);</span><br></pre></td></tr></table></figure>

      
    </div>
    
    
    

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>分享即是成长</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechat-reward-image.png" alt="changyuan 微信支付">
        <p>微信支付</p>
      </div>
    

    

    

  </div>
</div>

      </div>
    

    
      <div>
        <ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者：</strong>
    changyuan
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="http://changyuan.github.io/2014/08/29/zh-cn-to-pinyin/" title="汉字转拼音（mysql）">http://changyuan.github.io/2014/08/29/zh-cn-to-pinyin/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>
    本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="external nofollow" target="_blank">CC BY-NC-SA 3.0</a> 许可协议。转载请注明出处！
  </li>
</ul>

      </div>
    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/mysql/" rel="tag"># mysql</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2014/08/27/atom-tutorial/" rel="next" title="atom tutorial">
                <i class="fa fa-chevron-left"></i> atom tutorial
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2014/09/02/git-cheatsheet/" rel="prev" title="git-cheatsheet">
                git-cheatsheet <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/images/avatar.jpg" alt="changyuan">
            
              <p class="site-author-name" itemprop="name">changyuan</p>
              <p class="site-description motion-element" itemprop="description">不断升级自己的操作系统</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">69</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">1</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">26</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/changyuan" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-fab fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://twitter.com/changocean1" target="_blank" title="Twitter">
                      
                        <i class="fa fa-fw fa-fab fa-twitter"></i>Twitter</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="http://weibo.com/changyuan2011" target="_blank" title="Weibo">
                      
                        <i class="fa fa-fw fa-fab fa-weibo"></i>Weibo</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.douban.com/people/changyuanyuan" target="_blank" title="Zhihu">
                      
                        <i class="fa fa-fw fa-fab fa-quora"></i>Zhihu</a>
                  </span>
                
            </div>
          

          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-inline">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                Links
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="http://weibo.com/changyuan2011" title="Weibo" target="_blank">Weibo</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://github.com/changyuan" title="GitHub" target="_blank">GitHub</a>
                  </li>
                
              </ul>
            </div>
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#创建mysql函数"><span class="nav-number">1.</span> <span class="nav-text">创建mysql函数</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#创建拼音ascii码"><span class="nav-number">2.</span> <span class="nav-text">创建拼音ascii码</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#调用"><span class="nav-number">3.</span> <span class="nav-text">调用</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">changyuan</span>

  
</div>









<!-- 网站运行时间的设置 -->
<span id="timeDate">载入天数...</span>
<span id="times">载入时分秒...</span>
<script>
    var now = new Date();
    function createtime() {
        var grt= new Date("08/08/2014 00:00:00");
        now.setTime(now.getTime()+250);
        days = (now - grt ) / 1000 / 60 / 60 / 24; dnum = Math.floor(days);
        hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum); hnum = Math.floor(hours);
        if(String(hnum).length ==1 ){hnum = "0" + hnum;} minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
        mnum = Math.floor(minutes); if(String(mnum).length ==1 ){mnum = "0" + mnum;}
        seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
        snum = Math.round(seconds); if(String(snum).length ==1 ){snum = "0" + snum;}
        document.getElementById("timeDate").innerHTML = "本站已运行 "+dnum+" 天 ";
        document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒.";
    }
setInterval("createtime()",250);
</script>

        
<div class="busuanzi-count">
  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      
    </span>
  

  
    <span class="site-pv">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      
    </span>
  
</div>








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (/json$/i.test(search_path)) {
      isXml = false;
    }
    var path = "/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'auto') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });
  </script>





  

  

  

  
  

  

  

  

</body>
</html>
